Creates a new AlmanacController.

Namespace: Keystone.Almanac
Assembly: Keystone.Almanac (in Keystone.Almanac.dll)

public static AlmanacController CreateWith<TCatchAllPersistenceStrategy>( 
LogEntrySource entrySource
bool isEntryWritingActive = true 

where TCatchAllPersistenceStrategy : PersistenceStrategy, new(), >, new, entrySource, isEntryWritingActive)
This language is not supported or no code example is available.

Type Parameters

TCatchAllPersistenceStrategy

The persistence strategy type that will receive writing requests for all entry types. Since this type is instantiated inside this method, it must have a public parameterless constructor.

Parameters

entrySource

Type: LogEntrySource

The application location, computer and user associated to the entries to write.

isEntryWritingActive

Type: bool

Optional argument that defines whether all entry writing is on.

Defaults to true.

Return Value

A new AlmanacController instance.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono